@import "~scss/variables";

.sw-order-detail {
    .smart-bar__actions .sw-button-group .mt-button {
        margin-right: 0;
    }

    .sw-order-detail__alert {
        max-width: $content-width;
        margin-bottom: 34px;

        @media screen and (max-width: 1360px) {
            max-width: 770px;
        }

        &__quantity {
            font-weight: bold;
        }
    }

    .sw-order-detail__summary {
        float: right;
        padding-right: 38px;
        display: grid;

        dt,
        dd {
            line-height: 40px;
            border-bottom: 1px solid $color-gray-300;
            color: $color-darkgray-200;
            font-size: $font-size-xs;
            font-weight: normal;
            text-align: right;
            padding: 0;
        }

        dd {
            width: 160px;
            padding-right: 40px;
        }
    }

    .sw-order-detail__summary:has(.sw-order-saveable-field) {
        dd {
            width: 200px;

            &:has(.sw-order-saveable-field) {
                display: flex;
                align-items: center;
                padding-right: 0;
            }
        }

        .sw-order-saveable-field {
            padding-left: 20px;
            line-height: 1;
        }
    }

    .sw-order-detail-summary__switch-promotions {
        margin-top: 0;
    }

    .sw-card__content {
        overflow: hidden;
    }

    .sw-order-detail__manual-order-label {
        margin-left: 10px;
        text-align: center;
    }

    .sw-order-detail__tab-warning-badge {
        color: $color-pumpkin-spice-500;
        transform: translateY(-9%);
        margin-left: 4px;
    }

    .sw-order-detail__tabs {
        &.has-warning {
            .sw-tabs__slider {
                background-color: $color-pumpkin-spice-500;
            }
        }
    }

    .sw-order-detail__tabs-tab-documents {
        &.has-warning {
            color: $color-pumpkin-spice-500;

            &.sw-tabs-item--active {
                color: $color-pumpkin-spice-500;
            }
        }
    }
}
